const userStore = {
	namespaced: true,
	state: () => {
		return {
			LRStatus: false,
			blobUrl: '',
			base64Url: '',
			comName: null,
			stepIndex: 0,
			uploadAble: false,
			// 以哪种方式打开LR框 0 登录 1 注册
			LRType: 0,
			userInfo: {},
			postData: {
				uid: null,
				ptype: '',
				pname: '',
				pcontent: '',
			},
		}
	},
	mutations: {
		setLoginStatus(state, param) {
			state.loginStatus = param
		},
		changeLRStatus(state, param) {
			state.LRStatus = param
		},
		changeLRType(state, param) {
			state.LRType = param
		},
	},
	getters: {},
	actions: {},
}

export default userStore
